package com.projectdemo.springbootdemo1.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.Transient;

import java.util.Date;

//员工信息
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Employee {
    @Id
    private Integer id;
    private String empName;
    private String email;
    private Boolean gender; //0-male,1-female
    private Integer departmentId;
    private Date birth;

    @Transient
    private Department department;
}
